<!-- 搜索2 -->
<template>
	<view class="sou2">
		<div class="nav" style="height: 60rpx;"></div>
		<div class="one">
			<div class="left">
				<u-icon name="arrow-left" @click="fan"></u-icon>
			</div>
			<div class="right">
				<u-search placeholder="搜索关键词" @custom="fan" shape="square" v-model="keyword" :show-action="true" actionText='取消'></u-search>
			</div>
		</div>
		<div  style="height: 30rpx;background-color: white;"></div>
		<div class="two">
			<div class="p">客户</div>
			<div class="pp">10个结果</div>
		</div>
		<div class="li" v-for="item in list" :key="item.id" @click="sous">
			<div class="left">
				<div class="p1">{{item.name}}</div>
				<div class="p2">{{item.time}}</div>
			</div>
			<u-icon name="arrow-right"></u-icon>
		</div>
		<div class="quan" @click="sou">查看全部结果</div>
		<div  style="height: 30rpx;"></div>
		<div class="two">
			<div class="p">订单</div>
			<div class="pp">10个结果</div>
		</div>
		<div class="li" v-for="item in arr" :key="item.id" @click="sous">
			<div class="left">
				<div class="p1">{{item.name}}</div>
				<div class="p2">{{item.time}}</div>
			</div>
			<u-icon name="arrow-right"></u-icon>
		</div>
		<div class="quan" @click="sou">查看全部订单</div>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{id:1,name:'深圳木卫二科技有限公司',time:'2019-08-25 14:54'},
					{id:2,name:'深圳木卫二科技有限公司',time:'2019-08-25 14:54'},
					{id:3,name:'深圳木卫二科技有限公司',time:'2019-08-25 14:54'},
					{id:4,name:'深圳木卫二科技有限公司',time:'2019-08-25 14:54'},
					{id:5,name:'深圳木卫二科技有限公司',time:'2019-08-25 14:54'},
				],
				arr:[
					{id:1,name:'订单标题',time:'2019-08-25 14:54'},
					{id:2,name:'订单标题',time:'2019-08-25 14:54'},
					{id:3,name:'订单标题',time:'2019-08-25 14:54'},
					{id:4,name:'订单标题',time:'2019-08-25 14:54'},
					{id:5,name:'订单标题',time:'2019-08-25 14:54'},
				]
			}
		},
		methods: {
			fan(){
				uni.navigateBack()
			},
			sou(){
				uni.navigateTo({
					url:"/pages/di/sou1/sou1"
				})
			},
			sous(){
				uni.navigateTo({
					url:"/pages/di/souDetails/souDetails"
				})
			}
		}
	}
</script>

<style lang="scss">
	
.sou2{
	width: 100%;
	height: 100vh;
	background-color: #f9f9f9;
	overflow: auto;
	.nav{
		background-color: white;
	}
	.one{
		width: 100%;
		display: flex;
		padding: 0 20rpx;
		background-color: white;
		.left{
			width: 50rpx;
			display: flex;
			align-items: center;
		}
		.right{
			width: calc(100% - 50rpx);
		}
	}
	.two{
		margin-top: 30rpx;
		width: 100%;
		height: 100rpx;
		display: flex;
		padding: 20rpx;
		background-color: white;
		border-bottom: 1rpx solid gainsboro;
		.p{
			margin-right: 20rpx;
			font-weight: 600;
			line-height: 50rpx;
		}
		.pp{
			line-height: 50rpx;
			color: #a69999;
		}
	}
	.li{
		width: 100%;
		height: 140rpx;
		border-bottom: 1rpx solid gainsboro;
		background-color: white;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 20rpx;
		.p1{
			font-weight: 600;
			margin-bottom: 10rpx;
		}
		.p2{
			color: a69999;
		}
	}
	.quan{
		width: 100%;
		height: 100rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #123892;
		background-color: white;
	}
}
</style>
